{yun:}include file="$userstyle/header.htm"{/yun}

<script type="text/javascript">

    function gourl() {
        layer.confirm('确定要创建新的简历吗？', function() {
            window.location.href = 'index.php?c=expect&act=add';
            window.event.returnValue = false;
            return false;
        });
    }

    function reply_height_status(id) {
        $("#wname .myresume_button").html("<a class=\"myresume_senior_bth\" href=\"javascript:void(0);\" onclick=\"layer_del('','index.php?c=resume&act=replyheight&id=" + id + "');\">申请</a>");
        var layindex = $.layer({
            type: 1,
            title: '申请优质简历',
            closeBtn: [0, true],
            border: [10, 0.3, '#000', true],
            area: ['380px', '350px'],
            page: {
                dom: '#wname'
            }
        });
        $("#layindex").val(layindex);
    }

    function exite_height_status(id) {
        var pytoken = $.trim($("#pytoken").val());
        layer.confirm('确定要取消优质简历吗？', function() {
           loadlayer();
            $.post('index.php?c=resume&act=exite_height', {
                id: id,
                pytoken: pytoken
            }, function(data) {
                parent.layer.closeAll('loading');
                if(data == "1") {
                    layer.msg('取消成功！', 2, 9, function() {
                        window.location.href = 'index.php?c=resume';
                    });
                } else {
                    layer.msg('取消失败！', 2, 9, function() {
                        window.location.href = 'index.php?c=resume';
                    });
                }
            });

        })
    }

    function app_height_status(id) {
        $("#wname .myresume_button").html("<a class=\"myresume_senior_bth\" href=\"javascript:void(0);\" onclick=\"layer_del('','index.php?c=resume&act=height&id=" + id + "');\">申请</a>");
        $.layer({
            type: 1,
            title: '申请优质简历',
            closeBtn: [0, true],
            border: [10, 0.3, '#000', true],
            area: ['380px', '360px'],
            page: {
                dom: '#wname'
            }
        });
    }

    function showmsg(msg) {
        $("#msgs").html(msg);
        $.layer({
            type: 1,
            title: '查看原因',
            closeBtn: [0, true],
            border: [10, 0.3, '#000', true],
            area: ['400px', '200px'],
            page: {
                dom: "#showmsg"
            }
        });
    }
    //var user_topintegrity='{yun:}$config.user_topintegrity{/yun}';
</script>
<div class="yun_w1200">
    {yun:}include file="$userstyle/left.htm"{/yun}
    <div class="yun_m_rightbox fltR mt20 re">

        <div class="yun_m_tit fltL"> <span class="member_right_h1_span fltL">我的简历</span> <i class="member_right_h1_icon user_bg"></i></div>
        <div class="resume_box_list">
            {yun:}if !empty($rows){/yun}
            <div class="resume_Prompt"><i class="resume_Prompt_icon"></i>提示：所有简历均可用于投递职位；当简历隐私设置为"公开"时，仅默认简历可以被企业搜索到 </div>
            {yun:}/if{/yun}
            <div class="clear"></div>
            {yun:}foreach item=resume from=$rows{/yun} 
			
			{yun:}if $resume.id == $def_job{/yun}
            <!-- default  resume---------------------->
            <div class="myresume mt20">
                <div class="myresume_left ">
                    <div class="myresume_name"> 简历名称：
                        <a href="{yun:}url m=resume c=show id=$resume.id{/yun}">{yun:}$resume.name{/yun}</a>
                        <span class="myresume_default"><i  class="myresume_default_icon"></i>默认简历</span>
                    </div>
                    <div class="myresume_complete " id="tipid" rid="{yun:}$resume.id{/yun}">
                        <span class="myresume_complete_name">完整度<span class="myresume_wz_n">{yun:}$resume.integrity{/yun}</span>% </span>
                        <span class="shell fltL shell_mt"><span class="shell_mt_c" style="width:{yun:}$resume.integrity{/yun}%"><i class="shell_q"></i></span>
                        </span>
                        <div class="myresume_complete_tip" {yun:}if $resume.integrity ge $config.user_sqintegrity{/yun} style="display:none;" {yun:}/if{/yun} id="tiplist{yun:}$resume.id{/yun}">
                            <div class="myresume_complete_tip_box">
                                <a href="javascript:;" onclick="$('#tiplist{yun:}$resume.id{/yun}').hide();" class="myresume_complete_tip_close"></a>
                                <i class="myresume_complete_tip_box_icon"></i>
                                <div class="myresume_complete_tip_ws">你的简历完善度比较低</div>
                                <div class="myresume_complete_tip_wsts">找到满意工作的求职者，简历完整度都达到{yun:}$config.user_sqintegrity{/yun}%</div>
                            </div>
                        </div>
                    </div>
                    <div class="myresume_type">
						{yun:}if $resume.doc{/yun}
                        <span class="myresume_type_s">类型：粘贴简历</span>
						{yun:}else{/yun}
						<span class="myresume_type_s">类型：标准简历</span>
						{yun:}/if{/yun}
                        <span class="myresume_type_s">更新时间：{yun:}$resume.lastupdate|date_format:'%Y-%m-%d'{/yun}</span>
                        <span class="myresume_type_s">被浏览：{yun:}$resume.hits{/yun}</span>
                    </div>

                    <div class="myresume_state">
                        <div class="myresume_state_zt">
                            状态：{yun:}if $resume.state=='1'{/yun}
                            <span class="myresume_state_ysh">已审核</span>{yun:}elseif $resume.state=='0'{/yun}
                            <span class="myresume_state_dsh">正在审核中</span>{yun:}elseif $resume.state=='3'{/yun}
                            <span class="myresume_state_btg">审核不通过</span> {yun:}if $resume.statusbody{/yun}原因：{yun:}$resume.statusbody{/yun}{yun:}/if{/yun}{yun:}/if{/yun}
                        </div>

                        {yun:}if $resume.state=='1'{/yun}
                        <div class="myresume_state_cz">
                        
                            <a href="index.php?c=likejob&id={yun:}$resume.id{/yun}" class="" resumeid="{yun:}$resume.id{/yun}" type='pipei'>自动匹配职位<i class="myresume_state_tip_box_icon"></i></a>

                            <i class="myresume_state_cz_line">|</i> 
							
							{yun:}if $resume.height_status=='3'{/yun}
								<a href="javascript:reply_height_status('{yun:}$resume.id{/yun}');" type='height' rid="{yun:}$resume.id{/yun}" height_status="{yun:}$resume.height_status{/yun}">重新申请优质简历<i class="myresume_state_tip_box_icon"></i></a>
			                {yun:}elseif $resume.height_status=='2'{/yun}
								<a href="javascript:exite_height_status('{yun:}$resume.id{/yun}');" type='height' rid="{yun:}$resume.id{/yun}" height_status="{yun:}$resume.height_status{/yun}">取消优质简历<i  class="myresume_state_tip_box_icon"></i></a>
			                {yun:}elseif $resume.height_status=='1'{/yun}
								<a href="javascript:reply_height_status('{yun:}$resume.id{/yun}');" type='height' rid="{yun:}$resume.id{/yun}" height_status="{yun:}$resume.height_status{/yun}">优质简历正在审核中<i  class="myresume_state_tip_box_icon"></i></a> 
			                {yun:}else{/yun}
								<a href="javascript:reply_height_status('{yun:}$resume.id{/yun}');" type='height' rid="{yun:}$resume.id{/yun}" height_status="{yun:}$resume.height_status{/yun}">申请优质简历<i  class="myresume_state_tip_box_icon"></i></a> 
			                {yun:}/if{/yun}
			                
			                {yun:}if $config.user_trust_number>0{/yun}
				                <i class="myresume_state_cz_line">|</i>
	                            <a href="javascript:com_res();" type='entrust'>委托简历<i class="myresume_state_tip_box_icon"></i></a>
                            {yun:}/if{/yun}
                        </div>
                        {yun:}/if{/yun}
                    </div>

                </div>

                <div class="myresume_right ">
                    <div class="member_index_resume_set mt20">
                        {yun:}if $resume.status==2{/yun}
                        <a onClick="layer_del('', 'index.php?c=privacy&act=up&status=1');" href="javascript:void(0);"><i class="yun_user_index_r_yc"><em class="myresume_kqicon"></em></i></a>
                        <a href="index.php?c=privacy">
                            <div class="yun_user_index_set_name">简历已关闭</div>
                        </a>
                        {yun:}else{/yun}
                        <a onClick="layer_del('', 'index.php?c=privacy&act=up&status=2');" href="javascript:void(0);"><i class="yun_user_index_r_gk"></i></a>
                        <a href="index.php?c=privacy">
                            <div class="yun_user_index_set_name">简历已公开</div>
                        </a>
                        {yun:}/if{/yun}
                    </div>

                    {yun:}if $resume.state=='1'{/yun}
                    <div class="member_index_resume_t_cz_b">
                        <a href="javascript:void(0)" onclick="resumetop('{yun:}$resume.id{/yun}','{yun:}if $resume.topdatetime gt 0{/yun}{yun:}$resume.topdate{/yun}{yun:}/if{/yun}','{yun:}$resume.name{/yun}')" class="member_index_resume_t_cz_bth ">简历置顶</a>

                        <a href="index.php?c=expect{yun:}if $resume.doc{/yun}q{yun:}/if{/yun}&e={yun:}$resume.id{/yun}" class="member_index_resume_t_cz_bth ">修改简历</a>
                        <a href="{yun:}url m=resume c=show id=$resume.id{/yun}" target="_blank" class="member_index_resume_t_cz_bth mt15">预览简历</a>
                        <a onclick="layer_del('确定要刷新？', 'index.php?c=resume&act=refresh&id={yun:}$resume.id{/yun}');" href="javascript:void(0)" class="member_index_resume_t_cz_bth member_index_resume_t_cz_bth_hover mt15">刷新简历</a>
                    </div>
                  <!--  <div class="myresume_sc_resume">
                        <a href="javascript:void(0)" onclick="layer_del('确定要删除？', 'index.php?c=resume&act=del&id={yun:}$resume.id{/yun}');" class=""> 删除简历</a>
                    </div>-->
                    {yun:}else{/yun}
                    <div class="member_index_resume_t_cz_b">
                        <a href="index.php?c=expect{yun:}if $resume.doc{/yun}q{yun:}/if{/yun}&e={yun:}$resume.id{/yun}" class="member_index_resume_t_cz_bth ">修改简历</a>
                        <a href="{yun:}url m=resume c=show id=$resume.id{/yun}" target="_blank" class="member_index_resume_t_cz_bth mt15">预览简历</a>
                        <a onclick="layer_del('确定要刷新？', 'index.php?c=resume&act=refresh&id={yun:}$resume.id{/yun}');" href="javascript:void(0)" class="member_index_resume_t_cz_bth member_index_resume_t_cz_bth_hover mt15">刷新简历</a>
                        <a href="javascript:void(0)" onclick="layer_del('确定要删除？', 'index.php?c=resume&act=del&id={yun:}$resume.id{/yun}');" class="member_index_resume_t_cz_bth"> 删除简历</a>
                    </div>
                    {yun:}/if{/yun}
                </div>

                 
            </div>

            {yun:}else{/yun}
            <!--  备用简历-->
            <div class="myresume mt20">

                <div class="myresume_left ">
                    <div class="myresume_name"> 简历名称：
                        <a href="{yun:}url m=resume c=show id=$resume.id{/yun}">{yun:}$resume.name{/yun}</a>

                    </div>
                    <div class="myresume_complete ">
                        <span class="myresume_complete_name">完整度<span class="myresume_wz_n">{yun:}$resume.integrity{/yun}</span>% </span>
                        <span class="shell fltL shell_mt"><span class="shell_mt_c" style="width:{yun:}$resume.integrity{/yun}%"><i class="shell_q"></i></span>
                        </span>

                    </div>
                    <div class="myresume_type">
                        <span class="myresume_type_s">类型：{yun:}if $resume.doc=='1'{/yun}粘贴简历{yun:}else{/yun}标准简历{yun:}/if{/yun}</span>
                        <span class="myresume_type_s">更新时间：{yun:}$resume.lastupdate|date_format:'%Y-%m-%d'{/yun}</span>
                        <span class="myresume_type_s">被浏览：{yun:}$resume.hits{/yun}</span>
                    </div>

                    <div class="myresume_state">
                        <div class="myresume_state_zt">
                            状态：{yun:}if $resume.state=='1'{/yun}
                            <span class="myresume_state_ysh">已审核</span>{yun:}elseif $resume.state=='0'{/yun}
                            <span class="myresume_state_dsh">正在审核中</span>{yun:}elseif $resume.state=='3'{/yun}
                            <span class="myresume_state_btg">审核不通过</span> {yun:}if $resume.statusbody{/yun}原因：{yun:}$resume.statusbody{/yun}{yun:}/if{/yun}{yun:}/if{/yun}
                        </div>

                    </div>

                </div>
                <div class="myresume_right ">
                    <div class="myresume_default_set">
                        <a href="javascript:void(0);" class="myresume_default_set_a" onclick="layer_del('确定要执行？', 'index.php?c=resume&act=defaultresume&id={yun:}$resume.id{/yun}');">设为<br>默认</a>

                        <div class="myresume_default_set_p" id="demo{yun:}$resume.id{/yun}">
                            <div class="myresume_default_set_p_b">设为默认简历，才能被企业搜索查看到哦！<i class="myresume_default_set_p_icon"></i>
                                <a href="javascript:void(0)" onclick="$('#demo{yun:}$resume.id{/yun}').hide();" class="myresume_default_set_p_icon_close"></a>
                            </div>
                        </div>
                    </div>

                    <div class="myresume_right_cz_fmr">
                        <a href="index.php?c=expect{yun:}if $resume.doc{/yun}q{yun:}/if{/yun}&e={yun:}$resume.id{/yun}" class="myresume_right_cz_fmr_a">修改简历 </a>
                        <span class="myresume_right_cz_fmr_line">|</span>
                        <a href="{yun:}url m=resume c=show id=$resume.id{/yun}" class="myresume_right_cz_fmr_a">预览简历 </a>
                        <span class="myresume_right_cz_fmr_line">|</span>
                        <a href="javascript:void(0)" onclick="layer_del('确定要删除？', 'index.php?c=resume&act=del&id={yun:}$resume.id{/yun}');" class="myresume_right_cz_fmr_a">删除简历 </a>
                    </div>

                </div>

            </div>

            {yun:}/if{/yun} {yun:}foreachelse{/yun}
            <div class="msg_no">您还没有简历。</div>
            {yun:}/foreach{/yun}
            <div class="clear"></div>
            <div class="myresume_cj">
                {yun:}if $maxnum==""{/yun} 您还可以创建 <span class="resume_cj_sz">(无数)</span> 份备用简历 {yun:}else{/yun} 您还可以创建 <span class="resume_cj_sz">({yun:}$maxnum{/yun})</span> 份备用简历 {yun:}/if{/yun}（优质简历修改后需要重新申请）
                {yun:}if $maxnum > 0{/yun}
                <a class=" myresume_cj_bth" title="创建新简历" href="javascript:void(0)" onclick="gourl();return false;">创建新简历</a>
                <a href="index.php?c=expectq&add={yun:}$uid{/yun}" title="直接粘贴已有的个人简历" class=" myresume_cj_bth">在线粘贴简历</a>
                {yun:}else{/yun}
                <a class="myresume_cj_bth" title="创建新简历" href="javascript:void(0)" onclick="layer.msg('你的简历数已经达到系统设置的简历数了',2,8);return false;">创建新简历</a>
                <a href="javascript:void(0)" onclick="layer.msg('你的简历数已经达到系统设置的简历数了',2,8);return false;" title="直接粘贴已有的个人简历" class=" myresume_cj_bth">在线粘贴简历</a>
                {yun:}/if{/yun}
            </div>
            <div class="clear"></div>

        </div>
    </div>
</div>

<div id="wname" style="display:none; width: 380px; ">

    <div class="myresume_senior">
       <div class="sq_gjresume_hi">尊敬的用户你好！   </div>
            <div class="sq_gjresume_hi_t">申请优质人才你的简历需具备以下条件： </div>
        <div class="">
		 {yun:}if $heightone==1{/yun}<div class="sq_gjresume_tj">本科以上学历 </div>
		   {yun:}else{/yun}<div class="sq_gjresume_tjno">本科以上学历<span class="sq_gjresume_tjno_tip">(暂不符合)</span> </div>
		   {yun:}/if{/yun}
		    {yun:}if $heighttwo==2{/yun} <div class="sq_gjresume_tj">两年以上工作经验或三项以上工作经历</div>
			 {yun:}else{/yun}<div class="sq_gjresume_tjno">两年以上工作经验或三项以上工作经历<span class="sq_gjresume_tjno_tip">(暂不符合)</span></div>
			{yun:}/if{/yun}
        </div>
        
        <span class="myresume_button"><a class="myresume_senior_bth" href="javascript:void(0);">申请优质简历</a></span>
   
     <span class="myresume_senior_tj mt10">温馨提示：</span>
        <div class="myresume_senior_sm">成为优质人才以后，会有猎头中介主动联系您，请保持电话通畅。</div>
</div> </div>

<div id="showmsg" style="display:none; width: 400px;">
    <div id="infobox">
        <div class="admin_Operating_sh" style="padding:10px; ">
            <div class="admin_Operating_sh_h1" style="padding:5px;">审核说明：
                <div class="user_Audit_box" id="msgs"></div>
            </div>
            <div class="admin_Operating_sub" style="margin-top:10px;">
                &nbsp;&nbsp;<input type="button" onclick="layer.close($('#layindex').val());" class="com_pop_bth" value='确认'>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['layer', 'form', 'laydate'], function() {
        var layer = layui.layer,
            form = layui.form,
            $ = layui.$;
    });
</script>
{yun:}include file="$userstyle/footer.htm"{/yun}